<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9"/>
    <title>Wi-Fi Host Driver (WHD): WHD Bus API</title>
    <link href="tabs.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
      <div id="titlearea" style="font-family:verdana;">
        <table border='0' cellpadding='0' cellspacing='0' width="98%">
          <tr style="height:20px"><td>&nbsp;</td></tr>
          <tr style="border-collapse: collapse; padding: 0;">
            <td style="width:20px"></td>
            <td style="width:117px"><img src="cypress_logo.png" alt="Cypress Logo" /></td>
            <td style="width:20px;background-image:url('cypresslogo_line.png');"></td>
            <td style="vertical-align:middle; text-align:center; font: bold 25px/100% Verdana, Arial, Helvetica, sans-serif;background-image:url('cypresslogo_line.png');">
              Wi-Fi Host Driver (WHD) Public API Reference Guide
            </td>
          </tr>
          <tr><td>&nbsp;</td></tr>
        </table>
    </div>
    <!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;"
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__busapi.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">WHD Bus API</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>Allows WHD to operate with specific SDIO/SPI bus. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9f08c5241843cbe2ef06ffa8bfb5118d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__busapi.html#ga9f08c5241843cbe2ef06ffa8bfb5118d">whd_bus_sdio_attach</a> (<a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a> whd_driver, <a class="el" href="whd__types_8h.html#a2b3fb82834e1fbcbbf1f51e83c675edd">whd_sdio_config_t</a> *whd_config, cyhal_sdio_t *sdio_obj)</td></tr>
<tr class="memdesc:ga9f08c5241843cbe2ef06ffa8bfb5118d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attach the WLAN Device to a specific SDIO bus.  <a href="#ga9f08c5241843cbe2ef06ffa8bfb5118d">More...</a><br /></td></tr>
<tr class="separator:ga9f08c5241843cbe2ef06ffa8bfb5118d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadeed66e792eed64cbb6a0deef1dbe2da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__busapi.html#gadeed66e792eed64cbb6a0deef1dbe2da">whd_bus_sdio_detach</a> (<a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a> whd_driver)</td></tr>
<tr class="memdesc:gadeed66e792eed64cbb6a0deef1dbe2da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Detach the WLAN Device to a specific SDIO bus.  <a href="#gadeed66e792eed64cbb6a0deef1dbe2da">More...</a><br /></td></tr>
<tr class="separator:gadeed66e792eed64cbb6a0deef1dbe2da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga16b799bb65db52fb4518e1fbc203fe53"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__busapi.html#ga16b799bb65db52fb4518e1fbc203fe53">whd_bus_spi_attach</a> (<a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a> whd_driver, <a class="el" href="whd__types_8h.html#a2f5c5d3c7f74ce9a86595fe220c860d3">whd_spi_config_t</a> *whd_config, cyhal_spi_t *spi_obj)</td></tr>
<tr class="memdesc:ga16b799bb65db52fb4518e1fbc203fe53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attach the WLAN Device to a specific SPI bus.  <a href="#ga16b799bb65db52fb4518e1fbc203fe53">More...</a><br /></td></tr>
<tr class="separator:ga16b799bb65db52fb4518e1fbc203fe53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae83aaeef8c3d922cbb839b75ab289d13"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__busapi.html#gae83aaeef8c3d922cbb839b75ab289d13">whd_bus_spi_detach</a> (<a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a> whd_driver)</td></tr>
<tr class="memdesc:gae83aaeef8c3d922cbb839b75ab289d13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Detach the WLAN Device to a specific SPI bus.  <a href="#gae83aaeef8c3d922cbb839b75ab289d13">More...</a><br /></td></tr>
<tr class="separator:gae83aaeef8c3d922cbb839b75ab289d13"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga9f08c5241843cbe2ef06ffa8bfb5118d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9f08c5241843cbe2ef06ffa8bfb5118d">&#9670;&nbsp;</a></span>whd_bus_sdio_attach()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t whd_bus_sdio_attach </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a>&#160;</td>
          <td class="paramname"><em>whd_driver</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="whd__types_8h.html#a2b3fb82834e1fbcbbf1f51e83c675edd">whd_sdio_config_t</a> *&#160;</td>
          <td class="paramname"><em>whd_config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cyhal_sdio_t *&#160;</td>
          <td class="paramname"><em>sdio_obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Attach the WLAN Device to a specific SDIO bus. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">whd_driver</td><td>Pointer to handle instance of the driver </td></tr>
    <tr><td class="paramname">whd_config</td><td>Configuration for SDIO bus </td></tr>
    <tr><td class="paramname">sdio_obj</td><td>The SDHC hardware interface, from the Level 3 CY HW APIs</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WHD_SUCCESS or Error code </dd></dl>

</div>
</div>
<a id="gadeed66e792eed64cbb6a0deef1dbe2da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadeed66e792eed64cbb6a0deef1dbe2da">&#9670;&nbsp;</a></span>whd_bus_sdio_detach()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void whd_bus_sdio_detach </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a>&#160;</td>
          <td class="paramname"><em>whd_driver</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Detach the WLAN Device to a specific SDIO bus. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">whd_driver</td><td>Pointer to handle instance of the driver </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga16b799bb65db52fb4518e1fbc203fe53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga16b799bb65db52fb4518e1fbc203fe53">&#9670;&nbsp;</a></span>whd_bus_spi_attach()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t whd_bus_spi_attach </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a>&#160;</td>
          <td class="paramname"><em>whd_driver</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="whd__types_8h.html#a2f5c5d3c7f74ce9a86595fe220c860d3">whd_spi_config_t</a> *&#160;</td>
          <td class="paramname"><em>whd_config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cyhal_spi_t *&#160;</td>
          <td class="paramname"><em>spi_obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Attach the WLAN Device to a specific SPI bus. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">whd_driver</td><td>Pointer to handle instance of the driver </td></tr>
    <tr><td class="paramname">whd_config</td><td>Configuration for SPI bus </td></tr>
    <tr><td class="paramname">spi_obj</td><td>The SPI hardware interface, from the Level 3 CY HW APIs</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WHD_SUCCESS or Error code </dd></dl>

</div>
</div>
<a id="gae83aaeef8c3d922cbb839b75ab289d13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae83aaeef8c3d922cbb839b75ab289d13">&#9670;&nbsp;</a></span>whd_bus_spi_detach()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void whd_bus_spi_detach </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="whd_8h.html#ac45015d82e65db891b463066873eca4f">whd_driver_t</a>&#160;</td>
          <td class="paramname"><em>whd_driver</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Detach the WLAN Device to a specific SPI bus. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">whd_driver</td><td>Pointer to handle instance of the driver </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
    <!-- start footer part -->
    <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
      <ul>
        <li class="footer">Copyright Cypress Corporation.</li>
      </ul>
    </div>
  </body>
</html>
